/* Select Style */
$(function () {
	$("#header #headerSag #aramaKutusu select").selectbox();
	$('#oneCikanIlanlarSlayt').bxSlider({	  
	  slideWidth: 400,
	  nextSelector: '.oneCikanIlanlar #ileri',
	  prevSelector: '.oneCikanIlanlar #geri',
	  nextText:'',
	  prevText:'',
	  auto:true,
	  pager:false	  
	});
	
	$('#acilIlanlarSlayt').bxSlider({
	  minSlides: 4,
	  maxSlides: 4,
	  slideWidth: 172,
	  slideMargin: 10,
	  nextSelector: '.acilIlanlar .ileri',
	  prevSelector: '.acilIlanlar .geri',
	  nextText:'',
	  prevText:'',
	  auto:true
	});
	$('.populerMagazalarSlayt').bxSlider({
	  minSlides: 3,
	  maxSlides: 3,
	  slideWidth: 220,
	  slideMargin: 20,
	  nextSelector: '.populerMagazalar .ileri',
	  prevSelector: '.populerMagazalar .geri',
	  nextText:'',
	  prevText:''
	});
});

$(document).ready(function() {
	$('.price').priceFormat({
		prefix: '',
		suffix: '',
		centsLimit:0,
		centsSeparator: ',',
		thousandsSeparator: '.'
	});
	$('#siralama').change(function(){
		$(this).closest('form').trigger('submit');
	});
	/* Mesaj Gönder 
	$("#mesajGonder").click(function(e) {          
		e.preventDefault();
		$(".mesajGonder").slideToggle();
		$('body,html').animate({scrollTop:0},800);
	});
	$("#icerikAlani #ilanDetay .iletisimForm .baslik i").click(function(e) {          
		e.preventDefault();
		$(".mesajGonder").slideToggle();
	});	*/
});

$(document).ready(function() {
	$('.filtreBaslik.ozelalan').click(function(){
		$(this).parent('.filtre').find('.filtreIcerik.ozelalan').slideToggle('slow');
	});
});